package logic

import (
	"B/renrenzhuB_srv/model/mysql"
	"context"

	"B/renrenzhuB_srv/internal/svc"
	"B/renrenzhuB_srv/renrenzhuB"

	"github.com/zeromicro/go-zero/core/logx"
)

type UserStatusLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewUserStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserStatusLogic {
	return &UserStatusLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *UserStatusLogic) UserStatus(in *renrenzhuB.UserStatusRequest) (*renrenzhuB.UserStatusResponse, error) {
	// todo: add your logic here and delete this line
	var u mysql.User
	u.UsersStarts(int(in.UserId), in.Status)
	return &renrenzhuB.UserStatusResponse{Success: true}, nil
}
